/**
 * 知识库类型定义
 */
export interface KnowledgeBase {
  id: number;
  name: string;
  description: string;
  createdAt: string;
  updatedAt: string;
  documentCount: number;
  icon?: string;
  tags?: string[];
  createdBy: number;
  isPrivate: boolean;
}

// 知识库创建请求
export interface CreateKnowledgeBaseRequest {
  name: string;
  description: string;
  isPrivate: boolean;
  tags?: string[];
  icon?: string;
}

// 知识库更新请求
export interface UpdateKnowledgeBaseRequest {
  id: number;
  name?: string;
  description?: string;
  isPrivate?: boolean;
  tags?: string[];
  icon?: string;
}

// 知识库查询请求
export interface KnowledgeBaseQuery {
  page: number;
  pageSize: number;
  searchTerm?: string;
  sortBy?: 'createdAt' | 'updatedAt' | 'name' | 'documentCount';
  sortOrder?: 'asc' | 'desc';
  isPrivate?: boolean;
}

// 知识库查询响应
export interface KnowledgeBaseResponse {
  data: KnowledgeBase[];
  total: number;
  page: number;
  pageSize: number;
}